import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import {type App} from "vue";

const components = import.meta.glob('@/components/**/index.vue')

export default {
    install(app: App) {
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component);
        }

        for (const componentsKey in components) {
            app.component(components[componentsKey].name as string, components[componentsKey])
        }
    },
};
